-- GENERATED SPELL FOR [Prate Cloudseer] --


function spell0_5905(pUnit, Event) --@Swift Wind,n/a--
pUnit:FullCastSpellOnTarget(8385,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5905', 559, 1)
end

function Sorts_5905(pUnit, Event)
local choix_sorts_5905 = math.random(0, 0)
if choix_sorts_5905 == 0 then
pUnit:RegisterEvent('spell0_5905', 1, 1)
end
end

function mob5905_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5905', math.random(1500, 3000), 1)
end

function mob5905_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5905_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5905_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5905, 1, 'mob5905_Action')
RegisterUnitEvent(5905, 2, 'mob5905_Leave')
RegisterUnitEvent(5905, 3, 'mob5905_Kill')
RegisterUnitEvent(5905, 4, 'mob5905_Die')
